/*    */ package com.zimbra.cs.service.admin;
/*    */ 
/*    */ import com.zimbra.common.localconfig.LC;
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.soap.Element;
/*    */ import com.zimbra.cs.account.accesscontrol.AdminRight;
/*    */ import com.zimbra.soap.ZimbraSoapContext;
/*    */ import com.zimbra.soap.admin.message.GetLicenseInfoResponse;
/*    */ import com.zimbra.soap.admin.type.LicenseExpirationInfo;
/*    */ import java.util.List;
/*    */ import java.util.Map;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class GetLicenseInfo
/*    */   extends AdminDocumentHandler
/*    */ {
/*    */   static final String TRIAL_EXPIRATION_DATE_KEY = "trial_expiration_date";
/*    */   
/*    */   public Element handle(Element request, Map<String, Object> context)
/*    */     throws ServiceException
/*    */   {
/* 38 */     ZimbraSoapContext lc = getZimbraSoapContext(context);
/*    */     
/* 40 */     String expirationDate = LC.get("trial_expiration_date");
/* 41 */     LicenseExpirationInfo expirationInfo = new LicenseExpirationInfo(expirationDate);
/*    */     
/* 43 */     GetLicenseInfoResponse resp = new GetLicenseInfoResponse(expirationInfo);
/*    */     
/* 45 */     return lc.jaxbToElement(resp);
/*    */   }
/*    */   
/*    */   public void docRights(List<AdminRight> relatedRights, List<String> notes)
/*    */   {
/* 50 */     notes.add("Do not need any right, all admins are allowed.");
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/service/admin/GetLicenseInfo.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */